import React from 'react';
import { View, Text } from 'react-native';

import * as mod from "./index.jsx.all";

export default ({ name, ...otherProps }) => {
  const Com = mod[name];
  if (Com) {
    return <Com {...otherProps} />
  }
  return <Text>Icon</Text>;
};
